﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Web.Security;

public partial class UserControls_ThemeSelector : System.Web.UI.UserControl
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string output = string.Empty;
           /* foreach (string dir in Directory.GetDirectories(Server.MapPath("~/App_Themes")))
            {
                if (Path.GetFileName(dir)!="Admin")
                    output += string.Format("<a href=\"/?theme={0}\">{0}</a>&nbsp;", Path.GetFileName(dir));
            }*/
            try
            {
                if (Application["OnlineUsers"] != null)
                    output += string.Format("| Users online:{0}", Convert.ToString(Application["OnlineUsers"]));
            }
            catch { }
            litLink.Text = output;
        }       
    }   
}
